<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>
            X-admin v1.0
        </title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="format-detection" content="telephone=no">
        <link rel="stylesheet" href="__PUBLIC__/admin/css/x-admin.css" media="all">
    </head>
    <body>
        <div class="x-nav">
            <span class="layui-breadcrumb">
              <a><cite>首页</cite></a>
              <a><cite>九宫格抽奖</cite></a>
              <a><cite>抽奖设置</cite></a>
            </span>
            <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"  href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon" style="line-height:30px">ဂ</i></a>
        </div>
        <div class="x-body">
            <!-- <xblock>
                <button class="layui-btn" onclick="member_add('添加用户','{:U('admin/jiazhang/add_index')}','600','500')"><i class="layui-icon">&#xe608;</i>添加</button>
            </xblock> -->
            <table class="layui-table">
                <thead>
                    <tr>
                        <th>
                            ID
                        </th>
                        <th>
                            名称
                        </th>
                        <th>
                            时间
                        </th>
                        <th>
                            操作
                        </th>
                    </tr>
                </thead>
                <tbody>
                <?php foreach ($set as $u) { ?>
                    <tr>
                        <td>
                            {$u.id}
                        </td>
                        <td>
                            <u style="cursor:pointer"><!-- onclick="member_show('张三','member-show.html','10001','360','400')" -->
                                {$u.lw_name}
                            </u>
                        </td>
                        <td >
                            <?php echo date('Y-m-d H:i:s',$u['time']) ?>
                        </td>
                        <td class="td-manage">
                            <a title="详细设置" href="javascript:;" onclick="member_edit('详细设置','{:U('admin/cj/set_edit',array('id'=>$u['id']))}','4','','510')"
                            class="ml-5" style="text-decoration:none"><i class="layui-icon">&#xe642;</i>详细设置</a>
                        </td>
                    </tr>
                <?php } ?>
                </tbody>
            </table>
            <style>
                .fenye{ margin-top: 20px;}
                .fenye div a,.fenye div span{display: inline-block;padding: 5px 15px;margin-right: -1px;border: 1px solid #1AA094;}
                .fenye div span{background: #1AA094;color: #fff;}
            </style>
            <div class="fenye">{$page}</div>
        </div>
        <script src="__PUBLIC__/admin/lib/layui/layui.js" charset="utf-8"></script>
        <script src="__PUBLIC__/admin/js/x-layui.js" charset="utf-8"></script>
        <script>
            layui.use(['element','layer'], function(){
                $ = layui.jquery;//jquery
              lement = layui.element();//面包导航
              layer = layui.layer;//弹出层

              
            });


             /*用户-添加*/
            function member_add(title,url,w,h){
                x_admin_show(title,url,w,h);
            }
            /*用户-查看*/
            function member_show(title,url,id,w,h){
                x_admin_show(title,url,w,h);
            }

            // 用户-编辑
            function member_edit (title,url,id,w,h) {
                x_admin_show(title,url,w,h); 
            }
            </script>
    </body>
</html>